package edu.sias.dao;

import edu.sias.pojo.Post;

import java.util.ArrayList;
import java.util.List;

public class SearchDao {
    public List<Post> findMsg(String keyMsg){

//连接数据库。获取数据

//手动模拟数据

        ArrayList<Post> posts = new ArrayList<>();

        for (int i = 0; i < 10; i++) {

            posts.add(new Post(i+1, "西亚斯学院", "xxxxxxxxxxxxxx", (int) (Math.random() * 900 +100), "sisa.com"));

        }

//将数据返回

        return posts;

    }

}


